package com.lw.vod.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-order")
@Component
public interface OrderFeignClient {
    //rpc判断用户是否购买课程
    @GetMapping("/api/order/inner/isBuy/{memberId}/{courseId}")
    public boolean isBuy(@PathVariable("memberId") String memberId,
                         @PathVariable("courseId") String courseId);
}
